


<?php

if( !defined( 'CONFIGURATION_FILE_LOADED'))
	include( $_SERVER['DOCUMENT_ROOT'].'/lesondeschefs/includes/configuration_include.php');

include( PATH_MODELS.'player_model.php');
include( PATH_VIEWS.'player_view.php');

$bdd = model_db_connexion();

    
//Affichage des données du cube pour chaque face

for ($i = 1; $i < 7; $i++){
    // requete pour afficher les infos du cube 
    $req = model_cube($bdd, $i);
    while ($donnees = $req->fetch(PDO::FETCH_ASSOC)) {
    $id = $donnees['id_cube'];
    $name = $donnees['playlist_name'];
    $author = $donnees['playlist_author'];
    $genre1 = $donnees['playlist_genre_1'];
    $genre2 = $donnees['playlist_genre_2'];
    $genre3 = $donnees['playlist_genre_3'];
    $ambiance = $donnees['playlist_ambiance'];
    $date = $donnees['playlist_date'];
    $type_img = $donnees['playlist_img_type'];
    $soundcloud = $donnees['playlist_adress'];
    }
    switch ($i){
        
    case 1: 
    playlist1($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;

    case 2: 
    playlist2($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;

    case 3: 
    playlist3($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;
    
    case 4: 
    playlist4($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;
    
    case 5: 
    playlist5($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;
    
    case 6: 
    playlist6($id, $name, $author, $genre1, $genre2, $genre3, $ambiance, $type_img, $date, $soundcloud);
    break;
    }
}
?>
<script type="text/javascript">
    $("a.sc-play").mouseover(function() {
         $(".sc-controls").css('display','none');

        
    });
    
 </script>
 
  
